class ChangeItemAttributes < ActiveRecord::Migration
  def self.up
    rename_column :item_attributes, :attribute_id, :name
    change_column :item_attributes, :name, :string
  end

  def self.down
    change_column :item_attributes, :name, :integer
    rename_column :item_attributes, :name, :attribute_id
  end
end
